﻿@{
    Layout = null;
}

@model SimpleTaskManager.Domain.Entities.Task

    <p>@if(ViewBag.IsLeader){@Html.ActionLink("Edit", "Edit", new { id = Model.TaskID}) <span>|</span> }
         @if (Model.ParentTask != null)
         {
             @Html.ActionLink("Up", "Details", new { id = Model.ParentTask.TaskID }, new { title = "Display parent task" });
             
         }
         else
         {
             @Html.ActionLink("Up", "Index", "Projects", null, new { title = "Display the list of projects" });
         }
    </p>

<script type="text/javascript">
    $(document).ready(function () {
        $("#taskTable").dataTable({ bJQueryUI: true, sPaginationType: "full_numbers" });//.tablesorter({ sortList: [[0, 0]] });
    }
);
</script>